#ifndef YUVMSGNOTIFYSINGTON_H
#define YUVMSGNOTIFYSINGTON_H

/*******************************************************************
 *  Copyright(c) 2018-2018 A single spark
 *  All rights reserved.
 *
 *  文件名称:yuvmsgnotifysington.h
 *  简要描述:用于对象之间传递数据的单实例
 *
 *  修改日期:  2018.03.06
 *  作者:      LD
 *  邮箱:
 *  说明:
 *
 *  修改日期:
 *  作者:
 *  邮箱:
 *  说明:
 ******************************************************************/

#include <QObject>

class YUVMsgNotifySington : public QObject
{
    Q_OBJECT
public:
    ~YUVMsgNotifySington();

    static YUVMsgNotifySington *instance();

    //从菜单栏打开文件，然后通知更新播放列表
    void notifyPlayListUpdate(QString &strPath);

    //通知播放界面加载播放文件
    void notifyPlayInit(QString strFile);

signals:
    void playListUpdate(QString &strPath);
    void playInit(QString strPath);

public slots:

private:
    explicit YUVMsgNotifySington(QObject *parent = 0);

private:
    static YUVMsgNotifySington *m_pInstance;
};

#endif // YUVMSGNOTIFYSINGTON_H
